package com.gitee.neuray.security.admin.api;

import com.gitee.neuray.security.admin.authority.FrontPermission;
import com.gitee.neuray.security.admin.authority.PermissionElementDto;
import com.gitee.neuray.security.admin.dto.LoginUserDto;
import com.gitee.neuray.security.admin.dto.PmUserDto;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author: zhhongyu
 * @description: pm人员feign接口
 * @since: Create in 13:00 2020/3/9
 */
public interface PmUserServiceApi {
    @PostMapping(value = "/pmStaff/validate")
    @ResponseBody
    PmUserDto validate(@RequestBody LoginUserDto loginUser)throws Exception;

    @RequestMapping(value="/pmStaff/permissions",method = RequestMethod.GET)
    @ResponseBody
    List<PermissionElementDto> getPermissionByUserId(@RequestParam("userId") String userId) throws Exception;
}
